<?php
/**
 * Short Description  
 *
 * Long Description 
 *
 * @category   
 * @package    
 * @subpackage 
 * @copyright 
 * @author     Sandeep Manne<sandeep.manne@costrategix.com>
 */


require_once 'Zend/Form/Element.php';

class Core_Form_Element extends Zend_Form_Element
{
    public function __construct($spec, $options = null)
    {
        $this->setDecorators(array(
        	'ViewHelper',
        	'Errors',
            array(
            	'Description', array('tag' => 'p', 'class' => 'description')),
                array('HtmlTag', array('tag' => 'div')
            ),
            array(
                array('labelDtClose' => 'HtmlTag'),
                array('tag' => 'div', 'closeOnly' => true, 'placement' => 'prepend')
            ),
            'Label',
            array(
                array('labelDtOpen' => 'HtmlTag'),
                array('tag' => 'div', 'openOnly' => true, 'placement' => 'prepend', 'class' => 'form-label')
            )
        ));

        parent::__construct();
    }
}
